#ifndef QWIDGETUNDOCOMMAND_H
#define QWIDGETUNDOCOMMAND_H

#include "../corelibglobal.h"
#include "qabstractundocommand.h"

#define WIDGET_UNDO_ID    1001

namespace CORELIB
{

    class CORELIB_EXPORT QWidgetUndoCommand : public QAbstractUndoCommand
    {
    public:
        QWidgetUndoCommand(const QMap<QString,QVariant> &param,QUndoCommand *parent=0);

        int id()const;

        bool mergeWith(const QUndoCommand *other);
    };

}
#endif // QWIDGETUNDOCOMMAND_H
